package ${presenterPackageName};

<#if needActivity && needFragment>
import com.jpxx.base.ui.mvp.di.scope.ActivityScope;
<#elseif needActivity>
import com.jpxx.base.ui.mvp.di.scope.ActivityScope;
<#elseif needFragment>
import com.jpxx.base.ui.mvp.di.scope.FragmentScope;
</#if>
import com.jpxx.base.ui.mvp.BasePresenter;

import javax.inject.Inject;

import ${contractPackageName}.${pageName}Contract;
import androidx.lifecycle.LifecycleOwner;

<#if needActivity && needFragment>
@ActivityScope
<#elseif needActivity>
@ActivityScope
<#elseif needFragment>
@FragmentScope
</#if>
public class ${pageName}Presenter extends BasePresenter<${pageName}Contract.Model, ${pageName}Contract.View> {

    @Inject
    public ${pageName}Presenter (${pageName}Contract.Model model, ${pageName}Contract.View rootView) {
        super(model, rootView);
    }

    @Override
    public void onDestroy(LifecycleOwner owner) {
        super.onDestroy(owner);
    }
}
